// import com.alibaba.druid.sql.ast.SQLObjectImpl;
// import com.alibaba.druid.sql.ast.expr.SQLIntegerExpr;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

#include "SQLAlterTablePartitionLifecycle.h"
#include "../../visitor/SQLASTVisitor.h"
#include "../expr/SQLIntegerExpr.h"

SQLAlterTablePartitionLifecycle::SQLAlterTablePartitionLifecycle()
{
}

// @Override
void SQLAlterTablePartitionLifecycle::accept0(SQLASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(SQLAlterTablePartitionLifecycle)))
  {
    acceptChild(visitor, lifecycle);
  }
  visitor->endVisit(SharedObject(SQLAlterTablePartitionLifecycle));
}

SQLIntegerExpr_ptr SQLAlterTablePartitionLifecycle::getLifecycle()
{
  return lifecycle;
}

void SQLAlterTablePartitionLifecycle::setLifecycle(SQLIntegerExpr_ptr lifecycle)
{
  if (lifecycle != nullptr)
  {
    lifecycle->setParent(SharedObject(SQLAlterTablePartitionLifecycle));
  }
  this->lifecycle = lifecycle;
}
